package home_8_27;

import com.neu.Dao.BaseDao;

public class DeleteTest extends BaseDao {
    public int  delete(){
        int row = 0;
        String sql = "delete from student where sno = ?";
        int r = super.executeUpdate(sql,"101");

        if (r>0){
            System.out.println("成功");
        }else {
            System.out.println("失败");
        }

        return row;
    }

    public static void main(String[] args) {

        DeleteTest stu = new DeleteTest();
        System.out.println(stu.delete());


    }
}
